package cn.hzu580.util;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

public class InputStreamUtil {

	public static InputStream create(String text){
		return new ByteArrayInputStream(text.getBytes());
	}
	
	public static InputStream create(byte[] data){
		return new ByteArrayInputStream(data);
	}
	
}
